﻿using System;
using System.IO;
using System.Net;

namespace mVu
{
  // The RequestState class passes data across async calls.
  public class DownloadInfo
  {
    const int BufferSize = 4096;
		public byte[] BufferRead;

		public int DataLength;
		public int BytesProcessed;
    public int StartPoint;

		public HttpWebRequest Request;
		public Stream ResponseStream;
    public Stream FileStream;

		public DownloadProgressHandler ProgressCallback;

    public DateTime StartTime;
    public string Filename;

    public DownloadItem Item;

    public DownloadInfo()
		{
			BufferRead = new byte[BufferSize];
			Request = null;
			DataLength = -1;
			BytesProcessed = 0;
      StartPoint = 0;
      StartTime = DateTime.Now;
      Filename = String.Empty;
    }
  }
}
